package de.tu_darmstadt.informatik.tk.lernsystem.servlet;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import de.tu_darmstadt.informatik.tk.lernsystem.dao.RdfDao;

/**
 * Listener which takes care of setting up and tearing down
 * the RDF DAO.
 */
public class ServletEventListener implements ServletContextListener {
	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		RdfDao.tearDown();
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		RdfDao.setUp();
	}
}
